<h3>Solicitud de Inscripción</h3>
<br />

</br>
<% form_tag url_for(:action=>"update_table"),{:id =>"registration_requests_form_search"} do -%>
    <fieldset id="agrupacion" >

<fieldset class="column-left">

     <p class="two-col"><label>Campo:    </label><%= text_field_tag "search_id" %></p>
 
</fieldset>
      <fieldset class="column-right">
          <p class="two-col"><label>Nombre:  </label><%= text_field_tag "search_name" %></p>
              <% if user_signed_in? && [2].include?(current_user.role)%>
              <p class="two-col"><label>Estado de Solicitud:  </label><%= select_tag "search_registration_request_state", options_for_select(RequestAndComplaint::RegistrationRequest.list_states_admin) %></p>
              <% end %>
              <% if user_signed_in? && [4].include?(current_user.role)%>
              <p class="two-col"><label>Estado de Solicitud:  </label><%= select_tag "search_registration_request_state", options_for_select(RequestAndComplaint::RegistrationRequest.list_states) %></p>
              <% end %>

      </fieldset>
    <% if user_signed_in? && [2].include?(current_user.role)%>
      <fieldset class="column-left">
        
        <p class="two-col"><label>Asignar a:  </label><%= select_tag "registration_request_responsible", options_for_select( @users.collect {|t| [t.name, t.id]}),:include_blank=>"Seleccione" %></p>

      </fieldset>
      
      <% end %>

      <fieldset class="column-left">
       <input class="button" name="Buscar" value="Buscar" type="submit" />
      </fieldset>
   
 </fieldset>
<% end %>

<br />
<div id="registration_requests_table">
    <%= render :partial=>"table" %>
</div>

<br />

<br />

<%= link_to 'Nueva Solicitud de Inscripción', new_request_and_complaint_registration_request_path %>
